package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * IamGroup
 * 
 * @author PG(Auto Generator)
 * @version V1.0
 */
public class IamGroup extends IamGroupKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /** 代码 [32,0] Not NULL */
    protected String code;
    /** 名称 [20,0] Not NULL */
    protected String name;
    /** 类型 [1,0] */
    protected String type;
    /** 父ID [32,0] */
    protected String parentId;
    /**  [10,0] */
    protected Integer lft;
    /**  [10,0] */
    protected Integer rgt;
    /** 状态 [1,0] */
    protected String state;
    /** 租户代码 [50,0] Not NULL */
    protected String tenantCode;
    /** 租户名称 [50,0] Not NULL */
    protected String tenantName;
    /** 创建人 [20,0] */
    protected String createUser;
    /** 修改人 [20,0] */
    protected String updateUser;
    /** 创建时间 [19,0] */
    protected Date createTime;
    /** 修改时间 [19,0] */
    protected Date updateTime;
    /** 逻辑删除 [1,0] Not NULL */
    protected String isDeleted;

    public IamGroup() {
        super();
    }

    public IamGroupKey primaryKey() {
        return new IamGroupKey(id);
    }

    /** 取值 <== 代码 [32,0], Not NULL */
    public String getCode() {
        return code;
    }

    /** 赋值 ==> 代码 [32,0], Not NULL */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /** 取值 <== 名称 [20,0], Not NULL */
    public String getName() {
        return name;
    }

    /** 赋值 ==> 名称 [20,0], Not NULL */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /** 取值 <== 类型 [1,0] */
    public String getType() {
        return type;
    }

    /** 赋值 ==> 类型 [1,0] */
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    /** 取值 <== 父ID [32,0] */
    public String getParentId() {
        return parentId;
    }

    /** 赋值 ==> 父ID [32,0] */
    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    /** 取值 <==  [10,0] */
    public Integer getLft() {
        return lft;
    }

    /** 赋值 ==>  [10,0] */
    public void setLft(Integer lft) {
        this.lft = lft;
    }

    /** 取值 <==  [10,0] */
    public Integer getRgt() {
        return rgt;
    }

    /** 赋值 ==>  [10,0] */
    public void setRgt(Integer rgt) {
        this.rgt = rgt;
    }

    /** 取值 <== 状态 [1,0] */
    public String getState() {
        return state;
    }

    /** 赋值 ==> 状态 [1,0] */
    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    /** 取值 <== 租户代码 [50,0], Not NULL */
    public String getTenantCode() {
        return tenantCode;
    }

    /** 赋值 ==> 租户代码 [50,0], Not NULL */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode == null ? null : tenantCode.trim();
    }

    /** 取值 <== 租户名称 [50,0], Not NULL */
    public String getTenantName() {
        return tenantName;
    }

    /** 赋值 ==> 租户名称 [50,0], Not NULL */
    public void setTenantName(String tenantName) {
        this.tenantName = tenantName == null ? null : tenantName.trim();
    }

    /** 取值 <== 创建人 [20,0] */
    public String getCreateUser() {
        return createUser;
    }

    /** 赋值 ==> 创建人 [20,0] */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /** 取值 <== 修改人 [20,0] */
    public String getUpdateUser() {
        return updateUser;
    }

    /** 赋值 ==> 修改人 [20,0] */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /** 取值 <== 创建时间 [19,0] */
    public Date getCreateTime() {
        return createTime;
    }

    /** 赋值 ==> 创建时间 [19,0] */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 取值 <== 修改时间 [19,0] */
    public Date getUpdateTime() {
        return updateTime;
    }

    /** 赋值 ==> 修改时间 [19,0] */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 取值 <== 逻辑删除 [1,0], Not NULL */
    public String getIsDeleted() {
        return isDeleted;
    }

    /** 赋值 ==> 逻辑删除 [1,0], Not NULL */
    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted == null ? null : isDeleted.trim();
    }

    /** 浅克隆 */
    @Override
    public IamGroup clone() {
        IamGroup cloneIamGroup = null;
        try {
            cloneIamGroup = (IamGroup) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamGroup;
    }

    @Override
    public String toString() {
        return "IamGroup [id = " + id + ", code = " + code + ", name = " + name + ", type = " + type + ", parentId = "
                + parentId + ", lft = " + lft + ", rgt = " + rgt + ", state = " + state + ", tenantCode = "
                + tenantCode + ", tenantName = " + tenantName + ", createUser = " + createUser + ", updateUser = "
                + updateUser + ", createTime = " + createTime + ", updateTime = " + updateTime + ", isDeleted = "
                + isDeleted + "]";
    }
}